package HibernateFacet.second;

import java.util.Date;

public class Warning implements java.io.Serializable{
    private Integer id;
    private Integer deviceId;
    private String name;
    private String number;
    private String faultMsg; //故障情况
    private Date createTime;

    public Warning() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getFaultMsg() {
        return faultMsg;
    }

    public void setFaultMsg(String faultMsg) {
        this.faultMsg = faultMsg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Warning{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", name='" + name + '\'' +
                ", number='" + number + '\'' +
                ", faultMsg='" + faultMsg + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
